package com.kantboot.project.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.kantboot.project","com.kantboot.project.util.common"})
@ServletComponentScan(basePackages ={"com.kantboot.project","com.kantboot.project.util.common"} )
@EnableOpenApi
public class KantbootUserApplication {

    public static void main(String[] args) {
        System.out.println("正在启动用户模块！！！");
        long startDate = System.currentTimeMillis();
        SpringApplication.run(KantbootUserApplication.class, args);
        long endDate = System.currentTimeMillis();
        System.out.println("用户模块启动成功，耗时："+(endDate-startDate)+"毫秒");
    }

}
